package de.unibi.mmi.homeauto.team1.rooms;

import de.unibi.mmi.homeauto.team1.R;
import de.unibi.mmi.homeauto.team1.constants.Constants;
import de.unibi.mmi.homeauto.team1.drafts.DraftFragment;
import de.unibi.mmi.homeauto.team1.drafts.DraftViewPager;
import de.unibi.mmi.homeauto.team1.mainview.MainViewActivity;

public class RoomViewPager extends DraftViewPager {

	public static final int LIVING_ROOM_POS = 0;
	public static final int CORRIDOR_POS = 1;
	public static final int KITCHEN_POS = 2;
	public static final int BEDROOM_POS = 3;
	public static final int BATH_POS = 4;

	public static final int ALL_POS = 100;

	public RoomViewPager(MainViewActivity mpv) {
		fragments = new DraftFragment[5];

		fragments[RoomViewPager.LIVING_ROOM_POS] = new LivingroomFragment();
		fragments[RoomViewPager.BEDROOM_POS] = new BedroomFragment();
		fragments[RoomViewPager.CORRIDOR_POS] = new CorridorFragment();
		fragments[RoomViewPager.KITCHEN_POS] = new KitchenFragment();
		fragments[RoomViewPager.BATH_POS] = new BathFragment();

		startItem = 0;

		init(mpv, R.layout.pager2, R.id.pager2, R.id.indicatortitle2,
				R.id.indicatorbottom2);
	}

	@Override
	public final boolean onBackKey() {
		mva.changeScreen(MainViewActivity.MAIN_POS, Constants.NOT_SET);
		return true;
	}

}
